iconbrowser: Stop using radio buttons
authorMatthias Clasen <mclasen@redhat.com>
Mon, 31 Aug 2020 01:51:20 +0000 (21:51 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 31 Aug 2020 02:14:05 +0000 (22:14 -0400)
Replace them with grouped toggle buttons.

demos/icon-browser/window.ui

index 14cb63e1ba32bffaeb53cef2c990f1792fff2e53..2c80b254a7a3a7b30d9c45d5cf8038d6c6c619f6 100644 (file)
               <class name="linked"/>
             </style>
             <child>
-              <object class="GtkRadioButton" id="normal_radio">
+              <object class="GtkToggleButton" id="normal_radio">
                 <property name="label" translatable="yes">Normal</property>
+                <property name="active">1</property>
               </object>
             </child>
             <child>
-              <object class="GtkRadioButton" id="symbolic_radio">
+              <object class="GtkToggleButton" id="symbolic_radio">
                 <property name="label" translatable="yes">Symbolic</property>
                 <property name="group">normal_radio</property>
                 <signal name="notify::active" handler="symbolic_toggled" swapped="yes" after="yes"/>